import { IsString, IsNotEmpty, Length } from "class-validator";

export class CategoryDto {
    @IsString(
        {
            message: "标题不能为空"
        }
    )
    @IsNotEmpty()
    @Length(1,30)
    name:string;
}
